﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="LeaveRequest-Create.aspx.cs" Inherits="SmartSpace.WebApp.Modules.OA.Pages.LeaveRequest_Create" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
    创建请假单
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
    <link href="../JqValidate/screen.css" rel="stylesheet" />
    <script src="../JqValidate/jquery.validate.js"></script>
    <script>
        $(function () {
            $('#_ctlEditStartDate').datepicker();
            $('#_ctlEditEndDate').datepicker();

            function checkForm() {
                $("#Form").validate({
                    rules: {
                        _ctlEditSubject: {
                            required: true
                        }
                    },
                    messages: {
                        _ctlEditSubject: {
                            required: "不允许为空"
                        }
                    }
                });
            }
        });



    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <form class="cmxform" id="Form">
        <div class="ss-tbar">
            <asp:HyperLink ID="_ctlLinkBack" runat="server" NavigateUrl="~/Modules/OA/Pages/LeaveRequest-List.aspx">返回</asp:HyperLink>
            <asp:LinkButton ID="_ctlBtnSave" runat="server" OnClick="_ctlBtnSave_Click" OnClientClick="return checkForm();">保存</asp:LinkButton>
        </div>
        <div class="ss-form">
            <label>请假人</label>
            <asp:TextBox ID="_ctlEditCreator" ReadOnly="true" runat="server" Width="400" /><br />
            <label>标题</label>
            <asp:TextBox ID="_ctlEditSubject" ClientIDMode="Static" runat="server" Width="400" name="_ctlEditSubject" /><b>*</b><br />
            <label>类型</label>
            <asp:DropDownList ID="_ctlListType" runat="server" DataTextField="Caption" DataValueField="Code"></asp:DropDownList><b>*</b>
            <br />
            <label>开始时间</label>
            <asp:TextBox ID="_ctlEditStartDate" runat="server" Width="500" ClientIDMode="Static" /><b>*</b><br />
            <label>结束时间</label>
            <asp:TextBox ID="_ctlEditEndDate" runat="server" Width="500" ClientIDMode="Static" />
            <b>*</b>
            <br />
            <label>描述</label>
            <asp:TextBox ID="_ctlEditDescription" runat="server" Width="500" TextMode="MultiLine" Rows="5" /><b>*</b><br />
        </div>
    </form>
</asp:Content>
